/**
 * 
 */
package com.worksmap.core.entity;

import java.io.Serializable;

/**
 * 淘宝卖家Access token信息
 * @author jack
 * 2013.12.17
 */
public class TaoBaoSeller implements Serializable{

	private static final long serialVersionUID = -1736725695454572819L;
	private String taobao_user_id;      //淘宝帐号对应id
	private String taobao_user_nick;  	//淘宝账号
	private String access_token;  	 	//Access token, sessionKey
	private String token_type;  	 	//Access token的类型目前只支持bearer
	private String expires_in;  	 	//Access token过期时间,10（表示10秒后过期）
	private String refresh_token;  	 	//Refresh token
	private String re_expires_in;  	 	//Refresh token过期时间
	private String r1_expires_in;  	 	//r1级别API或字段的访问过期时间
	private String r2_expires_in;  	 	//r2级别API或字段的访问过期时间
	private String w1_expires_in;  	 	//w1级别API或字段的访问过期时间
	private String w2_expires_in;  	 	//w2级别API或字段的访问过期时间
	
	/**
	 * @return the taobao_user_id
	 */
	public String getTaobao_user_id() {
		return taobao_user_id;
	}
	/**
	 * @param taobao_user_id the taobao_user_id to set
	 */
	public void setTaobao_user_id(String taobao_user_id) {
		this.taobao_user_id = taobao_user_id;
	}
	/**
	 * @return the taobao_user_nick
	 */
	public String getTaobao_user_nick() {
		return taobao_user_nick;
	}
	/**
	 * @param taobao_user_nick the taobao_user_nick to set
	 */
	public void setTaobao_user_nick(String taobao_user_nick) {
		this.taobao_user_nick = taobao_user_nick;
	}
	/**
	 * @return the access_token
	 */
	public String getAccess_token() {
		return access_token;
	}
	/**
	 * @param access_token the access_token to set
	 */
	public void setAccess_token(String access_token) {
		this.access_token = access_token;
	}
	/**
	 * @return the token_type
	 */
	public String getToken_type() {
		return token_type;
	}
	/**
	 * @param token_type the token_type to set
	 */
	public void setToken_type(String token_type) {
		this.token_type = token_type;
	}
	/**
	 * @return the expires_in
	 */
	public String getExpires_in() {
		return expires_in;
	}
	/**
	 * @param expires_in the expires_in to set
	 */
	public void setExpires_in(String expires_in) {
		this.expires_in = expires_in;
	}
	/**
	 * @return the refresh_token
	 */
	public String getRefresh_token() {
		return refresh_token;
	}
	/**
	 * @param refresh_token the refresh_token to set
	 */
	public void setRefresh_token(String refresh_token) {
		this.refresh_token = refresh_token;
	}
	/**
	 * @return the re_expires_in
	 */
	public String getRe_expires_in() {
		return re_expires_in;
	}
	/**
	 * @param re_expires_in the re_expires_in to set
	 */
	public void setRe_expires_in(String re_expires_in) {
		this.re_expires_in = re_expires_in;
	}
	/**
	 * @return the r1_expires_in
	 */
	public String getR1_expires_in() {
		return r1_expires_in;
	}
	/**
	 * @param r1_expires_in the r1_expires_in to set
	 */
	public void setR1_expires_in(String r1_expires_in) {
		this.r1_expires_in = r1_expires_in;
	}
	/**
	 * @return the r2_expires_in
	 */
	public String getR2_expires_in() {
		return r2_expires_in;
	}
	/**
	 * @param r2_expires_in the r2_expires_in to set
	 */
	public void setR2_expires_in(String r2_expires_in) {
		this.r2_expires_in = r2_expires_in;
	}
	/**
	 * @return the w1_expires_in
	 */
	public String getW1_expires_in() {
		return w1_expires_in;
	}
	/**
	 * @param w1_expires_in the w1_expires_in to set
	 */
	public void setW1_expires_in(String w1_expires_in) {
		this.w1_expires_in = w1_expires_in;
	}
	/**
	 * @return the w2_expires_in
	 */
	public String getW2_expires_in() {
		return w2_expires_in;
	}
	/**
	 * @param w2_expires_in the w2_expires_in to set
	 */
	public void setW2_expires_in(String w2_expires_in) {
		this.w2_expires_in = w2_expires_in;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "TaoBaoSeller [taobao_user_id=" + taobao_user_id
				+ ", taobao_user_nick=" + taobao_user_nick + ", access_token="
				+ access_token + ", token_type=" + token_type + ", expires_in="
				+ expires_in + ", refresh_token=" + refresh_token
				+ ", re_expires_in=" + re_expires_in + ", r1_expires_in="
				+ r1_expires_in + ", r2_expires_in=" + r2_expires_in
				+ ", w1_expires_in=" + w1_expires_in + ", w2_expires_in="
				+ w2_expires_in + "]";
	}
	
}
